import request from '@/utils/request'

// 查询报名信息列表
export function listExaminergrant(query) {
  return request({
    url: '/grant/examinergrant/list',
    method: 'get',
    params: query
  })
}

// 查询报名信息详细
export function getExaminergrant(id) {
  return request({
    url: '/grant/examinergrant/' + id,
    method: 'get'
  })
}

// 新增报名信息
export function addExaminergrant(data) {
  return request({
    url: '/grant/examinergrant',
    method: 'post',
    data: data
  })
}

// 修改报名信息
export function updateExaminergrant(data) {
  return request({
    url: '/grant/examinergrant',
    method: 'put',
    data: data
  })
}

// 删除报名信息
export function delExaminergrant(id) {
  return request({
    url: '/grant/examinergrant/' + id,
    method: 'delete'
  })
}

// 导出报名信息
export function exportExaminergrant(query) {
  return request({
    url: '/grant/examinergrant/export',
    method: 'get',
    params: query
  })
}
// 导出报名信息
export function exportTeacherExaminergrant(query) {
  return request({
    url: '/grant/examinergrant/exportTeacher',
    method: 'get',
    params: query
  })
}
// 导出报名信息
export function exportPointExaminergrant(query) {
  return request({
    url: '/grant/examinergrant/exportPoint',
    method: 'get',
    params: query
  })
}
export function downTemplate() {
  return request({
    url: '/grant/examinergrant/expTemplate',
    method: 'get',
    params: {}
  })
}
